<div id="agentlist">
    <div class="nav">
        <a href="#admin/agent">
            <div class="nav-li">市代登记</div>
        </a>
        <div class="nav-li focus">市代列表</div>
    </div>
    <hr />
    <div class="agentlist">
        <table>
            <thead>
                <td>市代编号</td>
                <td>姓名</td>
                <td>公司</td>
                <td>城市</td>
                <td>介绍者</td>
                <td>操作</td>
            </thead>
            {{#if $Cache.admin.agentlist.list.length}}
            {{#each $Cache.admin.agentlist.list}}
            <tr>
                <td>{{_id}}</td>
                <td>{{real_name}}</td>
                <td>{{company||'无'}}</td>
                <td>{{city_name}}</td>
                <td>{{introducer||'无'}}</td>
                <td>
                    <a href="#admin/agent?agent_id={{_id}}">查看</a>
                </td>
            </tr>
            {{/each}}
            {{#else}}
            <tr>
                <td colspan="6">
                    暂无数据
                </td>
            </tr>
            {{/if}}
        </table>
    </div>
</div>
